
public class Triangle {
	
	private double side1;
	private double side2;
	private double side3;
	
	public Triangle(double side1, double side2, double side3){
		this.side1 = side1;
		this.side2 = side2;
		this.side3 = side3;
	}

	public  boolean isTriangle(){
		if(side1 <= 0 || side2 <= 0 || side3<= 0){
			return false;
		}
		
		if((side1+side2 > side3) && (side1+side3 > side2) && (side2 + side3 > side1)){
			return true;
		}
		else{
			return false;
		}
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Triangle t = new Triangle(3,2,5);
		System.out.println(t.isTriangle());
		
	}

}
